﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200059B RID: 1435
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FinishFirstTalkByPerformanceNpcScRsp : IMessage<FinishFirstTalkByPerformanceNpcScRsp>, IMessage, IEquatable<FinishFirstTalkByPerformanceNpcScRsp>, IDeepCloneable<FinishFirstTalkByPerformanceNpcScRsp>, IBufferMessage
	{
		// Token: 0x17001267 RID: 4711
		// (get) Token: 0x06004081 RID: 16513 RVA: 0x000B0AE3 File Offset: 0x000AECE3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FinishFirstTalkByPerformanceNpcScRsp> Parser
		{
			get
			{
				return FinishFirstTalkByPerformanceNpcScRsp._parser;
			}
		}

		// Token: 0x17001268 RID: 4712
		// (get) Token: 0x06004082 RID: 16514 RVA: 0x000B0AEA File Offset: 0x000AECEA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FinishFirstTalkByPerformanceNpcScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001269 RID: 4713
		// (get) Token: 0x06004083 RID: 16515 RVA: 0x000B0AFC File Offset: 0x000AECFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FinishFirstTalkByPerformanceNpcScRsp.Descriptor;
			}
		}

		// Token: 0x06004084 RID: 16516 RVA: 0x000B0B03 File Offset: 0x000AED03
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishFirstTalkByPerformanceNpcScRsp()
		{
		}

		// Token: 0x06004085 RID: 16517 RVA: 0x000B0B0C File Offset: 0x000AED0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishFirstTalkByPerformanceNpcScRsp(FinishFirstTalkByPerformanceNpcScRsp other) : this()
		{
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.performanceId_ = other.performanceId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004086 RID: 16518 RVA: 0x000B0B64 File Offset: 0x000AED64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishFirstTalkByPerformanceNpcScRsp Clone()
		{
			return new FinishFirstTalkByPerformanceNpcScRsp(this);
		}

		// Token: 0x1700126A RID: 4714
		// (get) Token: 0x06004087 RID: 16519 RVA: 0x000B0B6C File Offset: 0x000AED6C
		// (set) Token: 0x06004088 RID: 16520 RVA: 0x000B0B74 File Offset: 0x000AED74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x1700126B RID: 4715
		// (get) Token: 0x06004089 RID: 16521 RVA: 0x000B0B7D File Offset: 0x000AED7D
		// (set) Token: 0x0600408A RID: 16522 RVA: 0x000B0B85 File Offset: 0x000AED85
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PerformanceId
		{
			get
			{
				return this.performanceId_;
			}
			set
			{
				this.performanceId_ = value;
			}
		}

		// Token: 0x1700126C RID: 4716
		// (get) Token: 0x0600408B RID: 16523 RVA: 0x000B0B8E File Offset: 0x000AED8E
		// (set) Token: 0x0600408C RID: 16524 RVA: 0x000B0B96 File Offset: 0x000AED96
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600408D RID: 16525 RVA: 0x000B0B9F File Offset: 0x000AED9F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FinishFirstTalkByPerformanceNpcScRsp);
		}

		// Token: 0x0600408E RID: 16526 RVA: 0x000B0BB0 File Offset: 0x000AEDB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FinishFirstTalkByPerformanceNpcScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.Reward, other.Reward) && this.PerformanceId == other.PerformanceId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600408F RID: 16527 RVA: 0x000B0C10 File Offset: 0x000AEE10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.PerformanceId != 0U)
			{
				num ^= this.PerformanceId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004090 RID: 16528 RVA: 0x000B0C7E File Offset: 0x000AEE7E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004091 RID: 16529 RVA: 0x000B0C86 File Offset: 0x000AEE86
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004092 RID: 16530 RVA: 0x000B0C90 File Offset: 0x000AEE90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.PerformanceId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.PerformanceId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Retcode);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(114);
				output.WriteMessage(this.Reward);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004093 RID: 16531 RVA: 0x000B0D08 File Offset: 0x000AEF08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.PerformanceId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PerformanceId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004094 RID: 16532 RVA: 0x000B0D78 File Offset: 0x000AEF78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FinishFirstTalkByPerformanceNpcScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.PerformanceId != 0U)
			{
				this.PerformanceId = other.PerformanceId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004095 RID: 16533 RVA: 0x000B0DF4 File Offset: 0x000AEFF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004096 RID: 16534 RVA: 0x000B0E00 File Offset: 0x000AF000
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 32U)
					{
						if (num != 114U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							if (this.reward_ == null)
							{
								this.Reward = new ItemList();
							}
							input.ReadMessage(this.Reward);
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.PerformanceId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400196E RID: 6510
		private static readonly MessageParser<FinishFirstTalkByPerformanceNpcScRsp> _parser = new MessageParser<FinishFirstTalkByPerformanceNpcScRsp>(() => new FinishFirstTalkByPerformanceNpcScRsp());

		// Token: 0x0400196F RID: 6511
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001970 RID: 6512
		public const int RewardFieldNumber = 14;

		// Token: 0x04001971 RID: 6513
		private ItemList reward_;

		// Token: 0x04001972 RID: 6514
		public const int PerformanceIdFieldNumber = 3;

		// Token: 0x04001973 RID: 6515
		private uint performanceId_;

		// Token: 0x04001974 RID: 6516
		public const int RetcodeFieldNumber = 4;

		// Token: 0x04001975 RID: 6517
		private uint retcode_;
	}
}
